﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace Fei
{

    public class ShowQuestion : MonoBehaviour
    {
        // Start is called before the first frame update
        public Text question;
        public Text[] option = new Text[12];
        static public string questionText;
        static public char[] optionsText = new char[12];
        public Transform questionManager;//问题管理器Transform
        private Poetry.Questions _question;//问题管理器Question控件

        void Start()
        {
            _question = questionManager.GetComponent<Poetry.Questions>();
            //到时候换成湘男给的数据
            questionText = _question.tmpQuestion.GetIssue();
            for (int i = 0; i < optionsText.Length; i++) 
            {
                optionsText[i] = _question.tmpQuestion.GetChoices()[i][0];
            }

            question.text = questionText;
            for (int i = 0; i < 12; i++)
            {
                option[i].text = optionsText[i].ToString();//（前接TouchEvent.cs  64行）后来技术人员发现又被转化回来了。
            }
        }

    }
}